home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 June / Macworld (1998-06).dmg / Shareware World / Utilities / Video / MVEMVC / MyVidEditor 2.1 / Scripts Folder / Setup movie for AVI script < prev   
Text File  |  1998-04-01  |  1KB  |  37 lines

  1. on open (theItems)
  2.     tell application "MyVidEditor©"
  3.         activate
  4.     end tell
  5.     set isokay to true
  6.     if isokay then
  7.         script processmovieinfolder
  8.             on open (theFile)
  9.                 set SourceName to theFile as string
  10.                 copy (SourceName & ".audio") to tempname1
  11.                 copy (SourceName & ".mrg") to tempname2
  12.                 copy (SourceName & ".flt") to tempname3
  13.                 with timeout of 100000 seconds
  14.                     tell application "MyVidEditor©"
  15.                         if Extract track AIFF from movie file SourceName to movie file tempname1 Compress AIFF yes then
  16.                             -- extract audio
  17.                             if Add track video from movie file SourceName with movie file tempname1 to movie file tempname2 then
  18.                                 --merge audio & video into next file
  19.                                 if Flatten movie file tempname2 to movie file tempname3 then
  20.                                     --flatten it
  21.                                     tell application "Finder"
  22.                                         --have the finder clean up our temp files. This is optional so delete it if you want to keep them around
  23.                                         delete file tempname1
  24.                                         delete file tempname2
  25.                                     end tell
  26.                                 end if
  27.                             end if
  28.                         end if
  29.                         
  30.                     end tell
  31.                 end timeout
  32.             end open
  33.         end script
  34.         walk folders theItems with script processmovieinfolder with using files
  35.     end if
  36. end open
  37.